package org.liaohailong.library.dialog;

import android.view.Gravity;
import android.view.WindowManager;

import org.liaohailong.library.R;

/**
 * Author: liaohailong
 * Date: 2022/12/30
 * Time: 19:25
 * Description: 从右侧划出的dialog
 **/
public abstract class BaseRightDialog extends BaseDialogFragment {

    @Override
    public int getThemeResId() {
        return R.style.RightDialog;
    }

    @Override
    protected int getWindowWidth() {
        return WindowManager.LayoutParams.WRAP_CONTENT;
    }

    @Override
    protected int getWindowHeight() {
        return WindowManager.LayoutParams.MATCH_PARENT;
    }

    @Override
    public int getGravity() {
        return Gravity.END;
    }
}
